package exteditapp;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JProgressBar;

/**
 * Customized progress bar - you are able to change it's color on runtime.
 * @author Arturas Smorgun, arturas@smorgun.lt
 */
public class JCustomizedProgressBar extends JProgressBar {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Default constructor
	 */
	public JCustomizedProgressBar(){
	}

	/**
	 * Changes progress bar foreground color at a runtime
	 * @param color new foreground color
	 */
	public void setSelectionColor(Color color) {
		//TODO foreground color change implementation
	}
	
	/**
	 * Changes progress bar background color at a runtime
	 * @param color new background color
	 */
	public void setSelectionBackground(Color color) {
		//TODO background color change implementation
	}
	
	/**
	 * Changes progress bar foreground color at a runtime
	 * @param color new foreground color
	 */
	public Color getSelectionColor() {
		//TODO foreground color change implementation
		return new Color(0);
	}
	
	/**
	 * Changes progress bar background color at a runtime
	 * @param color new background color
	 */
	public Color getSelectionBackground() {
		//TODO background color change implementation
		return new Color(0);
	}
	
	public void paintComponent(Graphics g){
		super.paintComponent(g);
	}
	
}
